package com.edu.test;

import java.util.ArrayList;

import com.edu.dao.UserComentsDao;
import com.edu.dao.impl.GoodDaoImpl;
import com.edu.dao.impl.UserComentsDaoImpl;
import com.edu.dao.impl.UserDaoImpl;
import com.edu.entity.CommentDTO;
import com.edu.entity.Conditions;
import com.edu.entity.Goods;
import com.edu.entity.GoodsToWeb;
import com.edu.entity.Tool;
import com.edu.entity.User;
import com.edu.entity.address;
import com.edu.entity.reGoodsAndUser;
import com.edu.service.UserComentsService;
import com.edu.service.impl.GoodServerImpl;
import com.edu.service.impl.GoodServiceImpl;
import com.edu.service.impl.UserComentsServiceImpl;
import com.edu.service.impl.UserServerImpl;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;

public class test {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
//		UserServerImpl usi = new UserServerImpl();
//		GoodServerImpl gsi = new GoodServerImpl();
//		UserDaoImpl udi = new UserDaoImpl();
//		address add = usi.findAddress(1);
//		System.out.println(add.toString());
		UserComentsDao ud = new UserComentsDaoImpl();
		
		UserComentsService ucs = new UserComentsServiceImpl();
		CommentDTO c= ucs.getCommentsById(1, 1, 3);
//		c.setDislikeNums(ud.likeOrDislikeNums(3, 1));
		if(c==null) {
//			System.out.println(c.getDislikeNums());
//			System.out.println(12345);
			System.out.println(ud.likeOrDislikeNums(3, 1));
		}
//		System.out.println(ud.selectComentsByUserId(1, 1, 3).toString());
	}

}
